package com.travel.server.manager.api;

import com.travel.server.manager.dto.request.EmptyRequest;
import com.travel.server.manager.dto.request.login.LoginRequest;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @Author: LiZhenhui
 * @Date: 2018/10/18 11:25
 * @Desc:
 */
public interface ILoginService {

    /**
     * 登录
     * @param request
     * @return
     */
    @RequestMapping(value = "login", method = RequestMethod.POST)
    Object login(LoginRequest request);

    /**
     * 刷新验证码
     * @param request
     * @return
     */
    @RequestMapping(value = "refresh_verify_code", method = RequestMethod.POST)
    Object refreshVerifyCode(EmptyRequest request);
}
